﻿#ifndef MOUSEACT_H
#define MOUSEACT_H

#include <QObject>
#include <QtQml>
#include <windows.h>

#include "../common/singleton.h"

class MouseAct : public QObject
{
    Q_OBJECT
    QML_NAMED_ELEMENT(MouseAct)
public:
    SINGLETON(MouseAct)
    explicit MouseAct(QObject *parent = nullptr);
    POINT pos = {0, 0};

public slots:
    Q_INVOKABLE void getClickedPos();
    Q_INVOKABLE void doPressAct(int x, int y, int type_id);
    Q_INVOKABLE void doPressActCurrentPos(int type_id);

signals:
};

#endif // MOUSEACT_H
